package com.ruoyi.system.service.impl.biz;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.biz.BmMemberReportMapper;
import com.ruoyi.system.domain.biz.BmMemberReport;
import com.ruoyi.system.service.biz.IBmMemberReportService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会员费用汇总信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-18
 */
@Service
public class BmMemberReportServiceImpl implements IBmMemberReportService 
{
    @Autowired
    private BmMemberReportMapper bmMemberReportMapper;

    /**
     * 查询会员费用汇总信息
     * 
     * @param id 会员费用汇总信息主键
     * @return 会员费用汇总信息
     */
    @Override
    public BmMemberReport selectBmMemberReportById(String id)
    {
        return bmMemberReportMapper.selectBmMemberReportById(id);
    }

    /**
     * 查询会员费用汇总信息列表
     * 
     * @param bmMemberReport 会员费用汇总信息
     * @return 会员费用汇总信息
     */
    @Override
    public List<BmMemberReport> selectBmMemberReportList(BmMemberReport bmMemberReport)
    {
        return bmMemberReportMapper.selectBmMemberReportList(bmMemberReport);
    }

    /**
     * 新增会员费用汇总信息
     * 
     * @param bmMemberReport 会员费用汇总信息
     * @return 结果
     */
    @Override
    public int insertBmMemberReport(BmMemberReport bmMemberReport)
    {
        return bmMemberReportMapper.insertBmMemberReport(bmMemberReport);
    }

    /**
     * 修改会员费用汇总信息
     * 
     * @param bmMemberReport 会员费用汇总信息
     * @return 结果
     */
    @Override
    public int updateBmMemberReport(BmMemberReport bmMemberReport)
    {
        return bmMemberReportMapper.updateBmMemberReport(bmMemberReport);
    }

    /**
     * 批量删除会员费用汇总信息
     * 
     * @param ids 需要删除的会员费用汇总信息主键
     * @return 结果
     */
    @Override
    public int deleteBmMemberReportByIds(String ids)
    {
        return bmMemberReportMapper.deleteBmMemberReportByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除会员费用汇总信息信息
     * 
     * @param id 会员费用汇总信息主键
     * @return 结果
     */
    @Override
    public int deleteBmMemberReportById(String id)
    {
        return bmMemberReportMapper.deleteBmMemberReportById(id);
    }
}
